package com.kc.business.domain;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Table(name = "kc_goods_lease")
public class BizGoodsLease {
    @Id
    private Integer id;
    @NotBlank(message = "商品名称不能为空")
    private String goodsName;
    @NotBlank(message = "商品缩略图不能为空")
    private String thumb;
    @NotNull(message = "商品图片不能为空")
    @Transient
    private String[] goodsImgs;
    private String images;
    @NotNull(message = "购买价不能为空")
    private Double marketprice;
    @NotNull(message = "运费不能为空")
    private Double expressFee;
    @NotNull(message = "押金不能为空")
    private Double deposit;
    @NotBlank(message = "发货地不能为空")
    private String goodsAddress;
    @NotNull(message = "日租金不能为空")
    private Double dayPrice;
    @NotNull(message = "月租金不能为空")
    private Double monthPrice;
    @NotNull(message = "年租金不能为空")
    private Double yearPrice;
    @NotNull(message = "商品详情不能为空")
    private String content;
    @Transient
    private String contentInfo;
    /*是否删除，默认未删除*/
    private Integer isDeleted = 0;
    /*商品状态:0下架，1上架*/
    private Integer status;
    /*图片宽度*/
    private Integer imgWidth;
    /*图片高度*/
    private Integer imgHeight;
    /*图片尺寸*/
    private String imageAttr;
}
